let TOKEN = 'TOKEN'
let TOKENEXPIRED = 'TOKENEXPIRED' 

// 获取token
function getToken() {
	return uni.getStorageSync(TOKEN)
}
// 设置token
function setToken(token) {
	uni.setStorageSync(TOKEN,token)
}
// 移除token
function removeToken(){
	 uni.removeStorageSync(TOKEN)
}
// 获取token持续时间
function getTokenExpired() {
	return uni.getStorageSync(TOKENEXPIRED)
}
// 设置token持续时间
function setTokenExpired(tokenExpired){
	uni.setStorageSync(TOKENEXPIRED,tokenExpired)
}
// 移除token持续时间
function removeTokenExpired() {
	uni.removeStorageSync(TOKENEXPIRED)
}

export {
	getToken,
	getTokenExpired,
	setToken,
	setTokenExpired,
	removeToken,
	removeTokenExpired
}